package leecode

func findRepeatedDnaSequences(s string) (result []string) {
	dictMap := make(map[string]int)
	for i := 0; i+10 <= len(s); i++ {
		temp := s[i : i+10]
		dictMap[temp]++
		if dictMap[temp] == 2 {
			result = append(result, temp)
		}
	}
	return result
}
